public class Dog {
    public Dog() {
    }



    public Dog(String name, int age, String gander) {
        this.name = name;
        this.age = age;
        this.gander = gander;
    }

    public String name;
    public int age;
    public String gander;

    public void eat() {
        System.out.println(this.name + "在吃饭");
    }

    public void sleep() {
        System.out.println(this.name + "在睡觉");
    }

    public void show() {
        System.out.println("姓名：" + this.name + "年龄：" + this.age + "性别：" + this.gander);
    }
}
